﻿using Dapper.Contrib.Extensions;
using System;
using System.ComponentModel.DataAnnotations;
using Yuebon.Infrastructure;

namespace Yuebon.Car.Models
{
    /// <summary>
    /// 汽车品牌表，数据实体对象
    /// </summary>
    [Table("Car_AutoBrand")]
    [Serializable]
    public class AutoBrand : ICreationAudited, IModificationAudited, IDeleteAudited
    {
        /// 默认构造函数（需要初始化属性的在此处理）
        /// </summary>
        public AutoBrand()
        {
            
        }
        #region Property AutoBrand
        /// <summary>
        /// 主键
        /// </summary>
        [MaxLength(50)]
        [ExplicitKey]
        public virtual string Id
        {
            get;
            set;
        }
        /// <summary>
        /// 标题
        /// </summary>		
        public virtual string Title
        {
            get;
            set;
        }
        /// <summary>
        /// 首字母
        /// </summary>		
        public virtual string LastLetter
        {
            get;
            set;
        }

        /// <summary>
        /// 是否置顶
        /// </summary>		
        public virtual bool IsTop
        {
            get;
            set;
        }
        /// <summary>
        /// 排序
        /// </summary>		
        public virtual int? SortCode
        {
            get;
            set;
        }
        /// <summary>
        /// 描述
        /// </summary>		
        public virtual string Description
        {
            get;
            set;
        }
        /// <summary>
        /// 链接
        /// </summary>		
        public virtual string LinkUrl
        {
            get;
            set;
        }
        /// <summary>
        /// 图片URL
        /// </summary>		
        public virtual string ImgUrl
        {
            get;
            set;
        }
        /// <summary>
        /// SEO标题
        /// </summary>		
        public virtual string SeoTitle
        {
            get;
            set;
        }
        /// <summary>
        /// SeoKeywords
        /// </summary>		
        public virtual string SeoKeywords
        {
            get;
            set;
        }
        /// <summary>
        /// SeoDescription
        /// </summary>		
        public virtual string SeoDescription
        {
            get;
            set;
        }

        /// <summary>
        /// 有效标志
        /// </summary>		
        public virtual bool EnabledMark
        {
            get;
            set;
        }
        /// <summary>
        /// 删除标志
        /// </summary>
        public virtual bool? DeleteMark { get; set; }


        /// <summary>
        /// 创建日期
        /// </summary>
        public virtual DateTime? CreatorTime { get; set; }

        /// <summary>
        /// 创建用户主键
        /// </summary>
        [MaxLength(50)]
        public virtual string CreatorUserId { get; set; }

        /// <summary>
        /// 创建用户组织主键
        /// </summary>
        [MaxLength(50)]
        public virtual string CompanyId { get; set; }
        /// <summary>
        /// 创建用户部门主键
        /// </summary>
        [MaxLength(50)]
        public virtual string DeptId { get; set; }
        /// <summary>
        /// 最后修改时间
        /// </summary>
        public virtual DateTime? LastModifyTime { get; set; }

        /// <summary>
        /// 最后修改用户
        /// </summary>
        [MaxLength(50)]
        public virtual string LastModifyUserId { get; set; }

        /// <summary>
        /// 删除时间
        /// </summary>
        public virtual DateTime? DeleteTime { get; set; }

        /// <summary>
        /// 删除用户
        /// </summary>
        [MaxLength(50)]
        public virtual string DeleteUserId { get; set; }
        #endregion
    }
}
